libxl: Prevent xl save from segfaulting when control/shutdown key is removed
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 23 Nov 2011 12:03:37 +0000 (12:03 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 23 Nov 2011 12:03:37 +0000 (12:03 +0000)
commitd7e49b1fe4573eb98c2e9710a9c97d172a18f61e
tree9ce6df47190e73a6d6cce549a231b26d307a60a6
parent5aca159d276987ed884179742a4ca9b42c553af8
libxl: Prevent xl save from segfaulting when control/shutdown key is removed

To acknowledge the tools' setting of control/shutdown it is normal for
PV drivers to rm the key. This leads to libxl__xs_read() returning
NULL and thus a subsequent strcmp on the return value will cause a
segfault.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dom.c